package com.atguigu.lease.web.api.mapper;

import com.atguigu.lease.model.entity.RoomInfo;
import com.atguigu.lease.web.api.dto.RoomInfoSearchDto;
import com.atguigu.lease.web.api.vo.RoomItemVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
* @author 1
* @description 针对表【room_info(房间信息表)】的数据库操作Mapper
* @createDate 2024-08-28 11:00:26
* @Entity com.atguigu.lease.model.entity.RoomInfo
*/
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {
    List<RoomItemVo> selectRoomItemVoList(Page<RoomItemVo> page,
                                          @Param("searchDto") RoomInfoSearchDto searchDto);

    BigDecimal selectMinRentByAId(Long apartmentId);
}




